API Documentation
BoundingBox.h
1 // BoundingBox.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT BoundingBox final
14  {
15  public :
16 
27  BoundingBox (const nkMaths::Vector& center, float cubeHalfSide) ;
34  BoundingBox (const nkMaths::Vector& center, const nkMaths::Vector& axisAlignedHalfSides) ;
39 
40  // Getters
44  const std::array<nkMaths::Vector, 8>& getPoints () const ;
48  const std::array<nkMaths::Vector, 8>& getTransformedPoints () const ;
57 
58  // Setters
64  void setPoints (const std::array<nkMaths::Vector, 8>& points) ;
65 
66  // Updates
72  void updateTransformation (Node* node) ;
73 
74  // Checks
81  bool checkAgainst (const Frustum& frustum) const ;
82  } ;
83 }
nkGraphics::BoundingBox::getPoints
const std::array< nkMaths::Vector, 8 > & getPoints() const
nkGraphics::BoundingBox::updateTransformation
void updateTransformation(Node *node)
nkGraphics::BoundingBox::~BoundingBox
~BoundingBox()
nkGraphics::BoundingBox
A bounding box. Often used to encompass object's bounds in the world.
Definition: BoundingBox.h:14
nkGraphics::BoundingBox::BoundingBox
BoundingBox(const nkMaths::Vector &center, const nkMaths::Vector &axisAlignedHalfSides)
nkGraphics::BoundingBox::getTransformedPoints
const std::array< nkMaths::Vector, 8 > & getTransformedPoints() const
nkGraphics::BoundingBox::getCenter
nkMaths::Vector getCenter() const
nkGraphics::BoundingBox::BoundingBox
BoundingBox()
nkGraphics::Frustum
Defines a frustum.
Definition: Frustum.h:12
nkGraphics::BoundingBox::BoundingBox
BoundingBox(const nkMaths::Vector &center, float cubeHalfSide)
nkGraphics::BoundingBox::setPoints
void setPoints(const std::array< nkMaths::Vector, 8 > &points)
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:14
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkGraphics::BoundingBox::getAxisAlignedSides
nkMaths::Vector getAxisAlignedSides() const
nkGraphics::BoundingBox::checkAgainst
bool checkAgainst(const Frustum &frustum) const